package com.neu.smty.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neu.smty.mapper.SchedulingMapper;
import com.neu.smty.domain.Scheduling;
import com.neu.smty.service.ISchedulingService;

/**
 * 排班管理Service业务层处理
 *
 * @author liningning
 * @date 2025-09-30
 */
@Service
public class SchedulingServiceImpl implements ISchedulingService
{
    @Autowired
    private SchedulingMapper schedulingMapper;

    /**
     * 查询排班管理
     *
     * @param schedulingId 排班管理ID
     * @return 排班管理
     */
    @Override
    public Scheduling selectSchedulingById(Long schedulingId)
    {
        return schedulingMapper.selectSchedulingById(schedulingId);
    }

    /**
     * 查询排班管理列表
     *
     * @param scheduling 排班管理
     * @return 排班管理
     */
    @Override
    public List<Scheduling> selectSchedulingList(Scheduling scheduling)
    {
        return schedulingMapper.selectSchedulingList(scheduling);
    }

    /**
     * 新增排班管理
     *
     * @param scheduling 排班管理
     * @return 结果
     */
    @Override
    public int insertScheduling(Scheduling scheduling)
    {
        return schedulingMapper.insertScheduling(scheduling);
    }

    /**
     * 修改排班管理
     *
     * @param scheduling 排班管理
     * @return 结果
     */
    @Override
    public int updateScheduling(Scheduling scheduling)
    {
        return schedulingMapper.updateScheduling(scheduling);
    }

    /**
     * 批量删除排班管理
     *
     * @param schedulingIds 需要删除的排班管理ID
     * @return 结果
     */
    @Override
    public int deleteSchedulingByIds(Long[] schedulingIds)
    {
        return schedulingMapper.deleteSchedulingByIds(schedulingIds);
    }

    /**
     * 删除排班管理信息
     *
     * @param schedulingId 排班管理ID
     * @return 结果
     */
    @Override
    public int deleteSchedulingById(Long schedulingId)
    {
        return schedulingMapper.deleteSchedulingById(schedulingId);
    }
}
